import Vuex from 'vuex'
import actions from './actions'
import mutations from './mutations'
import getters from './getters'

const createStore = ()=>{
  return new Vuex.Store({
    state: {
      seller: {},
      productions: [],
      ratings: [],
      // 微信用户信息
      user: null,
      // 当前页签码
      currentTabIndex: 0
    },
    getters,
    actions,
    mutations
  })
}

export default createStore